﻿using Files.Domain;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Files.Services
{
    public class UserService
    {
        private ISqlSugarClient _db;

        public UserService(ISqlSugarClient client)
        {
            _db = client;
        }


        public  Login GetUser(string username, string password)
        {
            return _db.Queryable<Login>().Where(it => it.username == username && it.password == password).First();

        }

    }
}
